package com.flatsmap.service;

import java.util.List;

import com.flatsmap.dao.AbstractDao;


public abstract class AbstractService<T, D extends AbstractDao<T>> {

	protected D dao;
	
	public void save(T object){
		dao.save(object);
	}
	
	public List<T> getAll(){
		return dao.getAll();
	}

	public void delete(T object){
		dao.delete(object);
	}

	public D getDao() {
		return dao;
	}

	public void setDao(D dao) {
		this.dao = dao;
	}
}
